package com.zw.a.basic.a13.demo02_runnable;


//1. 定义一个(资源)类(MyRunnable), 实现Runnable接口
public class MyRunnable implements Runnable {

    //2. 重写Runnable#run()方法.
    @Override
    public void run() {
        //3. 把要执行的代码放到run()方法中.
        for (int i = 0; i < 100; i++) {
            System.out.println("run...................." + i);
        }
    }
}
